import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import api from './utils/api'
import antiDownloadProtection from './utils/antiDownloadProtection'

// 启用防下载保护
antiDownloadProtection.enable()

const app = createApp(App)

// 将api实例添加到全局属性
app.config.globalProperties.$http = api

app.use(store).use(router).mount('#app')
